//
//  CourseEvaluateChildModel.m
//  优学荟管理系统
//
//  Created by 星道 on 17/7/18.
//  Copyright © 2017年 星道三好. All rights reserved.
//

#import "CourseEvaluateChildModel.h"

@implementation CourseEvaluateChildModel

//创建类
+ (instancetype)HNObjectValuesForKey:(NSDictionary *)Dict
{
    return [[self alloc] initWithHNObjectValuesForKey:Dict];
}

//实例化
- (instancetype)initWithHNObjectValuesForKey:(NSDictionary *)Dict
{
    self = [super init];
    if (self)
    {
        //KVC
        [self setValuesForKeysWithDictionary:Dict];
    }
    return self;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"owner"])
    {
        self.child_account  = value[@"username"];
        self.child_petName  = value[@"petName"];
        self.ID             = value[@"uid"];
        self.teacher_id     = value[@"teacher_id"];
    }

    if ([key isEqualToString:@"id"])
    {
        self.enrollInfoId = value;
    }

}

@end
